package cn.com.ebidding.dianjian.server;

//import cn.com.ebidding.dianjian.client.SpringbootApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.util.concurrent.Executor;

/**
 * Created by sehuaqi on 2017/7/6.
 */
@SpringBootApplication
/*@EnableAsync*/
public class AppStart extends AsyncConfigurerSupport{

    public static void main(String[] args) {
    	SpringApplication.run(AppStart.class,args);
    }

    /*@Override
    public Executor getAsyncExecutor() {
        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
        executor.setCorePoolSize(2);
        executor.setMaxPoolSize(5);
        executor.setQueueCapacity(500);
        executor.setThreadNamePrefix("post-email-");
        executor.initialize();
        return executor;
    }*/
}
